package Meituan;

import java.util.regex.Matcher;

/**
 * @author: leiwenkang02@meituan.com
 * @date: 2018/7/27
 * @time: 18:46
 */
public class Test17 {
    public static void main(String[] args) {
        String qq = "新用户立减{reduceFee}";

        String regex = "reduceFee";

        boolean flag = qq.matches(regex);
        if(flag)
            System.out.println(qq+"...is ok");
        else
            System.out.println(qq+"... 不合法");
    }
}
